<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* 
        逢7过，个位数不能是7，不能是7的倍数。
        continue:结束当前循环
        break:结束整个循环。
        
        */
       for (var i = 1; i<30; i++){
        //    console.log(i);
           if (i% 10 ==7 || i % 7 ==0){
               console.log(i + "不合法");
               continue;
            //    break;
           }
           console.log(i);
       }
    </script>
</head>
<body>
    
</body>
</html>